home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
fk20.asm
< prev
next >
Wrap
Assembly Source File
|
1985-06-03
|
2KB
|
63 lines
TITLE FK20 - ASSEMBLER PROGRAM TO SET FUNCTION KEYS IN DOS 2.0
; Assemble this with MASM or ASM
; Then LINK it with LINK FK20;
; an error msg about no STACK is OK.
; either include FK20 in your AUTOEXEC or just type FK20.
;
; IMPORTANT NOTE ----------************
; For this routine to work, you must create a file called
;
; CONFIG.SYS
;
; with an ASCII editor and put the statement DEVICE=ANSI.SYS in it.
; This will load a file called ANSI.SYS from the DOS disk when the system
; is booted.
; Gene Plantz 03/13/83
SUBTTL DESCRIPTION OF THE STACK SEGMENT
PAGE
SUBTTL DESCRIPTION OF THE DATA SEGMENT
;
subttl desciption of dos interfaces
cseg segment para public 'CODE'
start proc far
assume cs:cseg,ds:cseg,es:nothing
push ds ;set up starting linkage as per example
sub ax,ax ;zero this and place on stack
push ax ;so that when we do a RET we go to
push cs ;move the workarea address into DS
pop ds
mov dx,offset f10 ;reset F10 key
mov ah,9 ;function 9 is print string
int 21h ;call dos to do it
mov dx,offset f9 ;reset F10 key
mov ah,9 ;function 9 is print string
int 21h ;call dos to do it
mov dx,offset f8 ;reset F10 key
mov ah,9 ;function 9 is print string
int 21h ;call dos to do it
mov dx,offset f7 ;reset F10 key
mov ah,9 ;function 9 is print string
int 21h ;call dos to do it
mov dx,offset f6 ;reset F10 key
mov ah,9 ;function 9 is print string
int 21h ;call dos to do it
mov dx,offset f5 ;reset F10 key
mov ah,9 ;function 9 is print string
int 21h ;call dos to do it
;
;
exit: ret
f10 db 27,'[0;68;"DIR";13p$'
f9 db 27,'[0;67;"PCMODEM";13p$'
f8 db 27,'[0;66;"C:SD /D/P";13p$'
f7 db 27,'[0;65;"DISKCOPY A: B:";13p$'
f6 db 27,'[0;64;"C:";13p$'
f5 db 27,'[0;63;"B:";13p$'
start endp
;
;
cseg ends
end start